export default class DelimitersStack {
    constructor (char, count, mnode) {
        this.char = char;
        this.count = count;
        this.currentCount = count;
        this.mnode = mnode;
        this.pre = null;
        this.next = null;
    }
    // 删除链表某个区间中的节点
    static removeBetween (bottom, top) {
        if (bottom.next !== top) {
            bottom.next = top;
            top.pre = bottom;
        }
    }
    // 从链表中删除当前节点
    remove () {
        if (this.pre !== null) {
            this.pre.next = this.next;
        }
        if (this.next !== null) {
            this.next.pre = this.pre
        }
    }
}